/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.home-margin {
  margin: 2rem 1rem 10rem 1rem;
}

.video-container {
  height: 15vh;
  overflow: hidden;
  display: block;
  position: relative;
  border-radius: 1rem;

  video {
    margin-top: -15%;
  }
}

::ng-deep .mat-mdc-chip-action {
  color: white !important;
}

/* --- New Styles for Source Assets Overlay --- */

.source-assets-container {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 20; /* Ensure it's on top of other elements */
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-assets-list {
  display: flex;
  gap: 8px;
  padding: 4px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.source-asset-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:hover {
    transform: scale(1.05);
  }
}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) {
}

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) {
  .video-container {
    height: 25vh;
  }
}

// Large devices (desktops, 992px and up)
@media (min-width: 992px) {
}

// X-Large devices (large desktops, 1200px and up)
@media (min-width: 1200px) {
  .home-margin {
    margin: 2rem auto;
  }
}

// XX-Large devices (larger desktops, 1400px and up)
@media (min-width: 1400px) {
}

// 4K Displays (Ultra HD) (Projectors or Higher Resolution Screens, 2160px and up)
@media screen and (min-width: 2160px) {
  .video-container {
    video {
      margin-top: -10%;
    }
  }
}
